package com.xukehong.demo.service.payment;

import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: xkh
 * @Date: 2019/12/7 14:10
 * @Version 1.0
 */
public interface IPaymentService {

    /**
     * 发起支付下单
     */
    JSONObject payOrder(JSONObject params, HttpServletRequest request);

    /**
     * 查询支付情况
     */
    JSONObject queryPay(JSONObject params);

    /**
     * 发起代付下单
     */
    JSONObject cashOrder(JSONObject params);

    /**
     * 查询代付结果
     */
    JSONObject queryCash(JSONObject params);

    /**
     * 查询余额
     */
    String queryBalance(JSONObject params);
}
